package com.enlorenz.core.annotation;

/**
 * 属性实体类
 * @author Karma
 */
public class PropEntity {
	//属性字段名称
	private String fieldName;
	//属性描述名称
	private String propName;
	//属性具体描述
	private String desc;
	
	/**
	 * 属性构造函数
	 * @param fieldName 属性字段名
	 * @param property 属性注解
	 */
	public PropEntity(String fieldName,Property property){
		this.fieldName=fieldName;
		this.propName=property.name();
		this.desc=property.desc();
	}
	
	public String getPropName() {
		return propName;
	}
	public void setPropName(String propName) {
		this.propName = propName;
	}
	
	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getFieldName() {
		return fieldName;
	}
	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}
	
}
